﻿package mortal.game.view.shopMall.shopQQ
{
    import flash.events.*;
    import mortal.game.events.*;
    import mortal.game.mvc.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;
    import mortal.mvc.core.*;

    public class ShopQQIcon extends ActionBaseIcon
    {
        private static var _instance:ShopQQIcon;

        public function ShopQQIcon()
        {
            super(ResFileConst.ShopQQIcon);
            return;
        }// end function

        override protected function clickHandler(event:MouseEvent) : void
        {
            Dispatcher.dispatchEvent(new DataEvent(EventName.ShopOpenQPointExchangeWin, 2));
            return;
        }// end function

        public static function get instance() : ShopQQIcon
        {
            if (_instance == null)
            {
                _instance = new ShopQQIcon;
            }
            return _instance;
        }// end function

        public static function get isViewShop() : Boolean
        {
            return _instance && !_instance.isHide;
        }// end function

    }
}
